#-*-encoding=utf-8-*-
name=u'user_money'
title=u'人员剩余餐费'
description=u'每个人还剩下的餐费'
fields=(
    IntegerField(
        maxval=10000,
        title=u'剩余餐费',
        minval=-100,
        write_condition=u'',
        size=18,
        default_value_exp=u'0',
        name=u'money'
),
    PersonSelectField(
        title=u'人员',
        multiple_selection=False,
        selectable_object='persononly',
        write_condition=u'',
        default_value_exp=u'[]',
        name=u'username'
),)

displayed_columns = [u'username', u'money', ]
fields_validation_script=ur""""""
